<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li class="active">
				<i class="icon-home home-icon"></i>
				<a href="#">系统首页</a>
			</li>
			<li>
				<a href="#">系统管理</a>
			</li>
			<li class="active">API日志</li>
		</ul><!-- .breadcrumb -->
	</div>

	<div class="page-content">
		<div class="row">
		    <div class="page-header">
				<h1>API日志</h1>
			</div>
			<div class="col-xs-12">
				<!-- PAGE CONTENT BEGINS -->
			     <form action="<?php echo base_url().'admin/systems/query_api_log'?>" method="get">
			         <div class="col-xs-5">
			             <label style="display: inline-block;width:20%;">选择日期：</label>
			             <input id="date" name="date" style="display: inline-block;width:30%;" value="<?php if (isset($date))echo $date;else echo date('Y-m-d') ?>" type="text" class="form-control">
			         </div>
			         
			         <button id="btnSubmit" type="submit" class="btn btn-info btn-sm"><i class="icon-search"></i>查询</button>
			     </form>
			</div>
			<br><br>
            <div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover" style="word-break:break-all;">
                        <thead>
                        <tr>
                        	<th class="center" style="width: 3%">
                            	<label>
									<input type="checkbox" class="ace" />
									<span class="lbl"></span>
								</label>
                        	</th>
                        	<th>操作时间</th>
                        	<th>类型</th>
                        	<th>内容</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if (isset($result)&&count($result)>0){
                        	foreach ($result as $log){
                        	?>
                        <tr>
                        	<td class="center">
                        		<label>
									<input type="checkbox" class="ace"/>
									<span class="lbl"></span>
								</label>
                        	</td>
                        	<td><?php echo $log->create_time;?></td>
                        	<td><?php echo $log->type;?></td>
                        	<td><?php echo htmlspecialchars($log->content);?></td>
                        </tr>
                        <?php }
                        }else{?>
                        <tr>
                        	<td colspan="4">无数据</td>
                        </tr>
                        <?php }?>
                        </tbody>
                	</table>
                </div>
            </div>
            <div class="col-sm-12">
            	<div class="modal-footer no-margin-top">
                	<div class="pull-left record">
						共<?php if (isset($count))echo $count;else echo 0;?>条记录
                    </div>
            		<?php if (isset($page))echo $page;?>
            	</div>
            </div>
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->

<script type="text/javascript">
    $(function () {
        $('#date').datetimepicker({
            format: 'yyyy-mm-dd', 'autoclose': true, minView: 2,language: 'zh-CN'
        });
    });
</script>
				